package com.uvt.agenda.view;

/**
 * Created by Cristian Holdunu on 05/02/14.
 * 01:40
 */
public class EventViewDecorator implements EventViewDecoratorInterface {
    private EventViewDecoratorInterface parent = null;

    public EventViewDecorator(EventViewDecoratorInterface parent) {
        this.parent = parent;
    }

    @Override
    public void activateUI() {
        if (parent!=null) {
            parent.activateUI();
            if (parent instanceof NewEventView){
                parent.activateUI();
                ((NewEventView)parent).disableEditing();
            }
        }

    }
}
